package com.book.service;

import com.book.domain.Book;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface BookService {
    /**
     *
     * @param book
     * @return
     */
    void save(Book book);

    /**
     *
     * @param book
     * @return
     */
    void delete(Book book);

    /**
     *
     * @param book
     * @return
     */
    void update(Book book);

    /**
     *
     * @return
     */
    List<Book> findAll();

    /**
     *
     * @param id
     * @return
     */
    Book findById(String id);

    PageInfo findAll(int page, int size);
}
